package com.myk.game.gobangchess.rooms;

import com.myk.game.gobangchess.expand.magichero.Game;
import com.myk.game.gobangchess.rooms.absrooms.AbsDiffViewChessRoom;
import com.myk.game.gobangchess.utils.GridsUtils;

/**
 * 魔法英雄Magical Hero
 * 江柯设计的棋，主要是自己玩
 */
public class MagicHeroRoom extends AbsDiffViewChessRoom{

    private Game game;

    public MagicHeroRoom(String roomName) {
        super(roomName, "江柯设计的大型战棋类游戏，从公共池中选择英雄召唤到场上，或者使用魔法。具有极为丰富的特效机制。", "魔法英雄", GridsUtils.createEmptyGrids(15,15), true, true);
    }

    @Override
    public String getRuleText() {
        return game.getRuleText();
    }

    @Override
    protected void onStartPrepare() {
        game = new Game();
        noticeAllMove();
    }

    @Override
    public void doRule(int row, int col, int value) {

        noticeAllRefreshGameInfo();
    }

}
